package org.skyui.core;

import javax.swing.JOptionPane;

import com.baycrypt.vaadinui.VaadinUIApplication;

public class ChilliParametrsHolder {
	private static String challenge="";
    private static String uamip="";
    private static String uamport="";
    private static String userurl="";
    private static String chilliurl="";
    private static String idCafe="";
    private static String username="";
    private static String userpassword="";
    
    private static String chilliLoginUrl="";
    
	public static String getChallenge() {
		return challenge;
	}
	public static void setChallenge(String challenge) {
		ChilliParametrsHolder.challenge = challenge;
	}
	public static String getUamip() {
		return uamip;
	}
	public static void setUamip(String uamip) {
		ChilliParametrsHolder.uamip = uamip;
	}
	public static String getUamport() {
		return uamport;
	}
	public static void setUamport(String uamport) {
		ChilliParametrsHolder.uamport = uamport;
	}
	public static String getUserurl() {
		return userurl;
	}
	public static void setUserurl(String userurl) {
		ChilliParametrsHolder.userurl = userurl;
	}
	public static String getChilliurl() {
		return chilliurl;
	}
	public static void setChilliurl(String chilliurl) {
		ChilliParametrsHolder.chilliurl = chilliurl;
	}
	public static String getUsername() {
		return username;
	}
	public static void setUsername(String username) {
		ChilliParametrsHolder.username = username;
	}
	public static String getUserpassword() {
		return userpassword;
	}
	public static void setUserpassword(String userpassword) {
		ChilliParametrsHolder.userpassword = userpassword;
	}
	public static String getChilliLoginUrl() {
		return chilliLoginUrl;
	}
	public static void setChilliLoginUrl(String chilliLoginUrl) {
		ChilliParametrsHolder.chilliLoginUrl = chilliLoginUrl;
	}
    
	public static String getIdCafe() {
		return idCafe;
	}
	public static void setIdCafe(String idCafe) {
		ChilliParametrsHolder.idCafe = idCafe;
	}
	public static String generateChilliLoginUrl(){
		
		chilliLoginUrl = "http://"+uamip+"/hotspot/sky_birds_home.php?challenge="+challenge+"&uamip="+uamip+"&uamport="+uamport+"&userurl="+userurl+"&username="+username+"&password="+userpassword;
		System.out.println(chilliLoginUrl);
		return chilliLoginUrl; 
		
	}
	
	public static String generateChilliFreeLoginUrl(){
		
		chilliLoginUrl = "http://"+uamip+"/hotspot/sky_birds_home.php?challenge="+challenge+"&uamip="+uamip+"&uamport="+uamport+"&userurl="+userurl+"&username=skyfree&password=skyfree";
		System.out.println(chilliLoginUrl);
		return chilliLoginUrl; 
		
	}
    
}